<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\SoftDeletes;

/**
 * 项目分类目录(从分类目录结构树选择的)
 * Class ProjectClassify
 * @package App\Models
 */
class ProjectClassify extends Model
{
    use SoftDeletes;

    protected $table   = 'project_classifies';
    protected $guarded = ['id'];
    protected $hidden  = ['created_at', 'updated_at', 'deleted_at'];

    function classify(): BelongsTo
    {
        return $this->belongsTo(Classify::class);
    }
}
